﻿<%@ Page Language="C#" MasterPageFile="~/aspnet/admin/ForValidation.master" AutoEventWireup="true" CodeFile="LoginStateView.aspx.cs" Inherits="aspnet_admin_loginState_LoginStateView" Title="Untitled Page" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder2" Runat="Server">
    &nbsp;<table align="center" border="0" cellpadding="2" cellspacing="1" class="border"
        height="116" width="100%">
        <tr align="center">
            <td class="topbg" colspan="2" style="height: 30px">
                登录操作记录管理</td>
        </tr>
        <tr>
            <td class="tdbg" colspan="2" style="height: 27px">
                提示信息:<asp:Label ID="tt" runat="server" CssClass="font-4"></asp:Label></td>
        </tr>
        <tr>
            <td class="tdbg" style="height: 27px" width="223">
                操作:</td>
            <td class="tdbg" style="width: 787px; height: 27px">
                <asp:LinkButton ID="LinkButton2" runat="server" OnClick="LinkButton2_Click">删除所有记录</asp:LinkButton></td>
        </tr>
        <tr>
            <td class="tdbg" style="height: 27px" width="223">
                搜索用户名:</td>
            <td class="tdbg" style="width: 787px; height: 27px">
                <asp:TextBox ID="Cx_keyWord_Name" runat="server" MaxLength="5"></asp:TextBox></td>
        </tr>
        <tr>
            <td class="tdbg" colspan="2" style="height: 27px">
                <center>
                    <asp:Button ID="Button1" runat="server" OnClick="Button1_Click" Text="搜索" /></center>
            </td>
        </tr>
    </table>
    <br />
    <asp:GridView id="GridView1"
    
    OnRowDataBound="GridView1_RowDataBound"
     runat="server" CssClass="border" AllowPaging="True" PageSize="200" CellPadding="3" EmptyDataText="没有数据请添加" Width="100%" AutoGenerateColumns="False" DataKeyNames="CX_loginState_id" OnPageIndexChanging="pagechange"
 ><Columns>
        <asp:BoundField DataField="CX_loginState_id" HeaderText="编号" InsertVisible="False"
            ReadOnly="True" SortExpression="CX_loginState_id" >
            <ItemStyle CssClass="tdbg" />
            <HeaderStyle CssClass="topbg" Height="30px" HorizontalAlign="Center" />
        </asp:BoundField>
        <asp:BoundField DataField="CX_loginState_uid" HeaderText="用户名" SortExpression="CX_loginState_uid" >
                    <ItemStyle CssClass="tdbg" />
            <HeaderStyle CssClass="topbg" Height="30px" HorizontalAlign="Center" />
        </asp:BoundField>
     <asp:TemplateField HeaderText="用户姓名" AccessibleHeaderText="CX_loginState_Name">
         <EditItemTemplate>
             <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
         </EditItemTemplate>
         <ItemStyle CssClass="tdbg" />
         <HeaderStyle CssClass="topbg" Height="30px" HorizontalAlign="Center" />
         <ItemTemplate>
             <asp:Label ID="Label1"  Text='<%#Eval("CX_loginState_Name").ToString()%>' runat="server"></asp:Label>&nbsp;
         </ItemTemplate>
     </asp:TemplateField>
        
        <asp:BoundField DataField="CX_loginState_ActionTime" HeaderText="操作时间" SortExpression="CX_loginState_ActionTime" >
               <ItemStyle CssClass="tdbg" />
            <HeaderStyle CssClass="topbg" Height="30px" HorizontalAlign="Center" />
        </asp:BoundField>
     <asp:BoundField DataField="CX_loginState_ActionInfo" HeaderText="操作信息" >
                    <ItemStyle CssClass="tdbg" />
            <HeaderStyle CssClass="topbg" Height="30px" HorizontalAlign="Center" />
      </asp:BoundField>
      
     <asp:TemplateField HeaderText="操作" ShowHeader="False">
         <ItemStyle CssClass="tdbg" />
         <HeaderStyle CssClass="topbg" Height="30px" HorizontalAlign="Center" />
         <ItemTemplate>
             
             <asp:LinkButton ID="LinkButton1" runat="server" CausesValidation="False" CommandArgument='<%#Eval("CX_loginState_id") %>' OnClick="delcc"
                 Text="删除"></asp:LinkButton>
                 
              
         </ItemTemplate>
     </asp:TemplateField>
</Columns>

<PagerStyle CssClass="tdbg" HorizontalAlign="Center" Font-Size="9pt" Font-Underline="False"></PagerStyle>
</asp:GridView>
    &nbsp;
</asp:Content>


